<%= form_for [:admin, @feedback], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">处理反馈</h3>
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">用户名</label>
          <div class="form-control-plaintext"><%= @feedback.user.name %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">用户电话</label>
          <div class="form-control-plaintext"><%= @feedback.user.phone %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">反馈时间</label>
          <div class="form-control-plaintext"><%= formattime(@feedback.created_at, unit: "hour") %></div>
        </div>
      </div>
      <div class="col-md-12">
        <div class="form-group">
          <label class="form-label">反馈内容</label>
          <div class="form-control-plaintext"><%= @feedback.content %></div>
        </div>
      </div>
      <div class="col-md-12">
        <div class="form-group">
          <label class="form-label">回复</label>
          <%= f.text_field :reply, class: "form-control" %>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <button type="submit" class="btn btn-primary">保 存</button>
  </div>
<% end %>